<!--驾驶员黑名单查询-->
<template>
  <div class="public-common">
      <div class="public-title">驾驶员黑名单列表</div>
      <el-button type="primary" style=" float: right; margin-bottom: 20px;">导出Excel</el-button>
      <el-table :data="tabledata" size="mini" border stripe header-row-class-name="textcenter">
              <el-table-column
                  label="驾驶员姓名" fixed="left" prop="a1">
              </el-table-column>
              <el-table-column
                  label="身份证号" prop="a2">
              </el-table-column>
              <el-table-column
                  label="资格证号" prop="a3">
              </el-table-column>
              <el-table-column
                  label="日期" prop="a4">
              </el-table-column>
              <el-table-column
                  label="处理结果" prop="a5">
              </el-table-column>
              <el-table-column
                  label="原因" prop="a6">
              </el-table-column>
              <el-table-column
                  label="操作人" prop="a7">
              </el-table-column>
          </el-table>
          <el-pagination
          @size-change="handleSizeChange"
          @current-change="handleCurrentChange"
          :current-page="page.now"
          :page-sizes="page.sizes"
          :page-size="page.pagesize"
          layout="total, sizes, prev, pager, next, jumper"
          :total="page.total" style="margin-top:10px;">
          </el-pagination>
  </div>
</template>

<script>
export default {
    data(){
        return {

              tabledata:[
                {
                    a1: '吴小',
                    a2: '210111192838284589',
                    a3: 'ZF1230202',
                    a4: '2018-11-10',
                    a5: '已处理',
                    a6: '严重违规',
                    a7: '丁建国',
                },
                {
                    a1: '王一博',
                    a2: '210111192838212341',
                    a3: 'ZF1235443',
                    a4: '2018-11-10',
                    a5: '已处理',
                    a6: '严重违规',
                    a7: '丁建国',
                },
                {
                    a1: '田替已',
                    a2: '210111192838265757',
                    a3: 'ZF1230231',
                    a4: '2018-11-10',
                    a5: '已处理',
                    a6: '严重违规',
                    a7: '丁建国',
                },
              ],
              page:{
                now:1,
                pagesize:10,
                sizes:[2,10, 20, 50, 100],
                total:0,
                key:''
              },

        }
    },
    methods:{
        //分页
        handleSizeChange(pagesize){
            this.page.pagesize = pagesize;
            this.search(true,true);
        },
        handleCurrentChange(pageno){
            this.page.now = pageno;
            this.search(true,true);
        }

    }
}
</script>

<style>
.public-common .el-form-item .el-input{ width: 100%;}
.public-title{line-height: 30px;background-color: #deecfd;padding:0 10px;margin-bottom:20px;color: #15428F}

</style>
